package server.demo.dto;

import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;

public class CreateSeatRequest {
    @NotNull(message = "车厢ID不能为空")
    private Long carriageId;
    
    @NotBlank(message = "座位号不能为空")
    private String seatNumber;
    
    @NotBlank(message = "座位类型不能为空")
    private String seatType;
    
    @NotNull(message = "价格不能为空")
    @DecimalMin(value = "0.01", message = "价格必须大于0")
    private BigDecimal price;
    
    public Long getCarriageId() {
        return carriageId;
    }
    
    public void setCarriageId(Long carriageId) {
        this.carriageId = carriageId;
    }
    
    public String getSeatNumber() {
        return seatNumber;
    }
    
    public void setSeatNumber(String seatNumber) {
        this.seatNumber = seatNumber;
    }
    
    public String getSeatType() {
        return seatType;
    }
    
    public void setSeatType(String seatType) {
        this.seatType = seatType;
    }
    
    public BigDecimal getPrice() {
        return price;
    }
    
    public void setPrice(BigDecimal price) {
        this.price = price;
    }
}